package 里氏替换原则;

public class WDHorse implements WhiteHorse {
    private char breed;

    public WDHorse(char breed) {
        this.breed = breed;
    }

    @Override
    public void Horse() {
        getColor('白');
    }

    @Override
    public void getColor(char color) {
        System.out.println("这是一匹"+color+breed+"马");
    }
}
